<?php
/*
 *author:Yangligao
 *Date:2013-9-26
 */
require '../../Config.php';
require_once '../checkPower.php';
$joinCpModel = new JoinCpModel();
$arr = $joinCpModel->joincp_select();

for($i=0;$i<count($arr);$i++){
	switch($arr[$i]['cp_type']){
		case 'gt':
			$arr[$i]['cp_type'] = '个体';
			break;
		case 'sydz':
			$arr[$i]['cp_type'] = '私营独资';
			break;
		case 'syhh':
			$arr[$i]['cp_type'] = '私营合伙';
			break;
		case 'gq':
			$arr[$i]['cp_type'] = '国企';
			break;
		case 'wq':
			$arr[$i]['cp_type'] = '外企';
			break;
		case 'zfjg':
			$arr[$i]['cp_type'] = '政府机构';
			break;
		
	}
}
$smarty->assign('joinCpInfo',$arr);
$smarty->display('Admin/CpM/CpM.html');
?>
